package com.aizuda.boot.modules.business.comment.entity.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.List;

/**
 * @author yangshen
 * @version 1.0
 * @date 2025/5/23
 */
@Data
@Schema(description = "评论保存请求")
public class CommentSaveReq {
    @Schema(description = "合同id")
    private Integer contractId;

    @Schema(description = "评论内容",required = true)
    private String commentText; // 评论内容

    @Schema(description = "评论类型：0-协商评论，1-审批评论", required = true, example = "0", allowableValues = "0,1")
    private Integer commentType; // 评论类型

    @Schema(description = "父评论ID（用于回复评论，不传或传0表示顶级评论）", example = "0")
    private Integer parentCommentId; // 父评论ID，用于回复

    @Schema(description = "评论附件文件ID列表", example = "[123456789, 987654321]")
    private List<Long> attachments; // 评论附件文件ID列表
}
